package com.wg.msshopsp.backendmanagement.shop.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("shop")
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "店铺表")
public class ShopP implements Serializable {
    @Schema(description = "店铺ID")
    private Integer id; // 对应shop.id

    @Schema(description = "用户ID（关联user表）")
    private Integer userId; // 对应shop.user_id

    @Schema(description = "店铺名称")
    private String shopName; // 对应shop.shop_name

    @Schema(description = "店铺描述")
    private String shopDesc; // 对应shop.shop_desc

    @Schema(description = "店铺状态")
    private Integer status;

    private String logo;


    private String createTime; // 新增：对应数据库的create_time字段

    // 店铺包含多个商品（一对多关系）
    private List<Product> products;
}
